import request from '@/utils/request'

// 账号登录
export function login(data) {
  return request({
    url: '/admin/AdminUserLogin/login',
    method: 'post',
    data
  })
}

// 查询账号信息（用于权限判断）
export function getAdminUserInfo() {
  return request({
    url: '/admin/AdminUser/getAdminUserRoleModule',
    method: 'get'
  })
}

// 账号注销
export function logout() {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}
